package com.cj.utils;

import com.jfinal.kit.StrKit;

import java.text.DecimalFormat;
import java.util.UUID;


public class StrUtil extends StrKit {
	private static DecimalFormat decimalFormat = new DecimalFormat();
	
    public static String getUUID() {
        String uuid = UUID.randomUUID().toString();
        return uuid.replaceAll("-", "");
    }
    
    public static String getNo(String prefix, String pattern, int number) {
    	decimalFormat.applyPattern(pattern);
    	return prefix + decimalFormat.format(number);
    }
    

}
